import { ICommonComponentProps, ITextComponentProps, IImageComponentProps } from 'fow-code-components/lib/defaultProps.d';
// 通用属性
export const commonDefaultProps: ICommonComponentProps = {
	// actions
	actionType: '',
	url: '',
	// size
	height: '',
	width: '100%',
	paddingLeft: '0px',
	paddingRight: '0px',
	paddingTop: '0px',
	paddingBottom: '0px',
	// border type
	borderStyle: 'none',
	borderColor: '#000',
	borderWidth: '0',
	borderRadius: '0',
	boxSizing: 'border-box',
	// shadow and opacity
	boxShadow: '0 0 0 #000000',
	opacity: '1',
	// position and x,y
	position: 'absolute',
	left: '0',
	top: '0',
};

// 文本属性
export const textDefaultProps: ITextComponentProps = {
	// basic props - font styles
	text: '正文内容',
	fontSize: '14px',
	fontFamily: '',
	fontWeight: 'normal',
	fontStyle: 'normal',
	textDecoration: 'none',
	lineHeight: '1',
	textAlign: 'left',
	color: '#000000',
	backgroundColor: '',
	...commonDefaultProps,
};

// 图片属性
export const imageDefaultProps: IImageComponentProps = {
	imageSrc: '',
	...commonDefaultProps,
};

// 形状接口
export interface IShapeComponentProps extends ICommonComponentProps {
	backgroundColor: string;
}
// 形状属性
export const shapeDefaultProps: IShapeComponentProps = {
	backgroundColor: '',
	...commonDefaultProps,
};
